package pe.com.grupobbva.saa.lei0;

public class SAA_LEI0_PortTypeProxy implements pe.com.grupobbva.saa.lei0.SAA_LEI0_PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.saa.lei0.SAA_LEI0_PortType sAA_LEI0_PortType = null;
  
  public SAA_LEI0_PortTypeProxy() {
    _initSAA_LEI0_PortTypeProxy();
  }
  
  public SAA_LEI0_PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initSAA_LEI0_PortTypeProxy();
  }
  
  private void _initSAA_LEI0_PortTypeProxy() {
    try {
      sAA_LEI0_PortType = (new pe.com.grupobbva.saa.lei0.SAA_LEI0_ServiceLocator()).getSAA_LEI0_Port();
      if (sAA_LEI0_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)sAA_LEI0_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)sAA_LEI0_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (sAA_LEI0_PortType != null)
      ((javax.xml.rpc.Stub)sAA_LEI0_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.saa.lei0.SAA_LEI0_PortType getSAA_LEI0_PortType() {
    if (sAA_LEI0_PortType == null)
      _initSAA_LEI0_PortTypeProxy();
    return sAA_LEI0_PortType;
  }
  
  public pe.com.grupobbva.saa.lei0.CtValidarUsuarioRs callLEI0(pe.com.grupobbva.saa.lei0.CtValidarUsuarioRq validarUsuarioRq) throws java.rmi.RemoteException{
    if (sAA_LEI0_PortType == null)
      _initSAA_LEI0_PortTypeProxy();
    return sAA_LEI0_PortType.callLEI0(validarUsuarioRq);
  }
  
  
}